<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp"%>
<%@ include file="/WEB-INF/common/header.jsp"%>


<div class="layui-fluid">

	<form class="layui-form" isLoad="${empty bean ? 0 : 1}">
	
		<input type="hidden" name="wxTempId" value="${wxTempId }" />
		
		<c:if test="${not empty bean }">
			<div class="layui-form-item">
				<label class="layui-form-label">主键：</label>
				<div class="layui-input-block">
					<div class="layui-form-mid layui-word-aux">${bean.id }</div>
					<input type="hidden" name="id" />
					<input type="hidden" name="status" />
				</div>
			</div>

			<hr>
		</c:if>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">模板键值：</label>
			<div class="layui-input-inline">
				<input type="text" name="keyData" required lay-verType="tips"
					lay-verify="required" placeholder="请输入模板键值" autocomplete="off"
					class="layui-input" maxlength="20" style="width:200px;" />
			</div>
		</div>

		<hr>

		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">模版内容：</label>
			<div class="layui-input-inline">
				<textarea name="content" placeholder="请输入模版内容" class="layui-textarea" 
				required lay-verType="tips" lay-verify="required" style="width:400px;"></textarea>
			</div>
		</div>

		<hr>
		
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">模板颜色：</label>
			<div class="layui-input-inline">
				<input type="text" name="color" placeholder="请输入模版内容" class="layui-input" maxlength="7" style="width:180px;" value="#000000" />
			</div>
		</div>

		<hr>

		<div class="layui-form-item">
			<label class="layui-form-label">字体放大：</label>
			<div class="layui-input-inline">
				<input type="checkbox" name="enlarge" title="放大" value="1" ${not empty bean && bean.enlarge == 1 ? 'checked' : '' }>
			</div>
		</div>

		<hr />

		<div class="layui-form-item">
			<label class="layui-form-label">备注：</label>
			<div class="layui-input-inline">
		      <textarea name="note" placeholder="请输入模板内容描述" class="layui-textarea" style="width:400px;"></textarea>
			</div>
		</div>

		<hr />

		<div class="layui-form-item" style="text-align: center;">
			<button class="layui-btn" lay-submit=""
				lay-filter="${empty bean ? 'save' : 'edit' }"
				url="${ctx }/wx/temp/content/add">
				<i class="layui-icon">&#xe642;</i>${empty bean ? '新增' : '编辑' }</button>
			<button type="button" class="layui-btn layui-btn-primary"
				function="close">关闭</button>
		</div>

	</form>
</div>

<%@ include file="/WEB-INF/common/bottom.jsp"%>